package net.avh4.scratch.rpg;

import java.awt.Graphics2D;
import java.awt.Image;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

public class Avatar {

	private Image southImage;
	
	public Avatar(File imageFile) throws IOException {
		southImage = ImageIO.read(imageFile);
	}
	
	public Avatar(String imageFilename) throws IOException {
		this(new File(imageFilename));
	}

	
	public void draw(Graphics2D g, int x, int y) {
		
		g.drawImage(southImage, x, y, null);
	}
}
